@use "styles/BoxShadow.module.scss";
@use "styles/Radius.module.scss";
@use "styles/ScreenSizes.module.scss";
@use "styles/Spacings.module.scss";
@use "styles/Typography.module.scss";
@use "styles/ZIndexes.module.scss";

.main_container {
  display: flex;
  flex-direction: column;
  gap: Spacings.$spacing06;
  padding-block: Spacings.$spacing05;

  .main_infos_wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: Spacings.$spacing07;
    padding-block: Spacings.$spacing05;

    .section_title {
      @include Typography.H2;
    }

    .inputs_wrapper {
      display: flex;
      gap: Spacings.$spacing08;
      width: 100%;
      align-items: stretch;
      height: 100%;

      .brain_snippet_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: Spacings.$spacing03;
        align-self: top;
        position: relative;

        .edit_snippet {
          position: absolute;
          left: -(Spacings.$spacing06);
          top: calc(Spacings.$spacing10 + Spacings.$spacing03);
          z-index: ZIndexes.$modal;
        }

        .brain_snippet {
          width: 128px;
          height: 128px;
          border-radius: Radius.$normal;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 68px;

          &.clickable {
            cursor: pointer;
          }
        }

        @media screen and (max-width: ScreenSizes.$small) {
          position: relative;
          align-self: center;
          width: 100%;

          .edit_snippet {
            width: 100%;
          }

          .brain_snippet {
            width: 96px;
            height: 96px;
            font-size: 48px;
            align-self: center;
          }
        }

        .button_wrapper {
          display: flex;
          align-items: center;
          gap: Spacings.$spacing02;
          font-size: Typography.$small;
          gap: Spacings.$spacing03;
        }
      }

      .second_column {
        width: 65%;
        display: flex;
        flex-direction: column;
        gap: Spacings.$spacing05;

        .general_information {
          width: 100%;
          display: flex;
          flex-direction: column;
          gap: Spacings.$spacing05;
        }

        .model_information {
          width: 100%;
        }

        .save_button {
          display: flex;
          justify-content: flex-end;
          padding-top: Spacings.$spacing05;
        }
      }

      @media (max-width: ScreenSizes.$small) {
        flex-direction: column;
        gap: Spacings.$spacing05;
        width: 100%;

        .brain_snippet_wrapper {
          align-self: flex-start;
        }

        .second_column {
          width: 100%;

          .general_information {
            width: 100%;
          }
        }
      }
    }
  }

  .prompt_wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: Spacings.$spacing05;
    border-radius: Radius.$big;
    padding-block: Spacings.$spacing05;

    .section_title {
      @include Typography.H2;
    }
  }
}
